home *** CD-ROM | disk | FTP | other *** search
- Path: laura.pcug.co.uk!altheim!broldham
- Newsgroups: comp.lang.c
- Message-ID: <1269@altheim.win-uk.net>
- References: <4inmv1$ljj@sunburst.ccs.yorku.ca> <4is9tf$8o3@spanky.pls.ov.com><m.b.greenwood-2503960745050001@mac007016.shef.ac.uk>
- Reply-To: broldham@altheim.win-uk.net (Brian R. Oldham)
- From: broldham@altheim.win-uk.net (Brian R. Oldham)
- Date: Tue, 26 Mar 1996 11:35:42 GMT
- Subject: Re: How to make it BEEP ?
-
-
- In article <m.b.greenwood-2503960745050001@mac007016.shef.ac.uk>, Mike Greenwood (m.b.greenwood@sheffield.ac.uk) writes:
- >In article <4is9tf$8o3@spanky.pls.ov.com>, glenn@ov.com wrote:
- >
- >> In article ljj@sunburst.ccs.yorku.ca, "Shahed A. Quazi"
- ><cs942112@ariel.cs.yorku.ca> writes:
- >> >Hi,
- >> >
- >> >I was wondering if anyone would be kind enough to tell me if there is a
- >> >C function on unix that I can use to make a beep sound. If it's not
- >> >there,I would really appreciate if someone could give me the code.
- >> >
- >> >Actually, I'm writing a very simple program where I need it to beep if
- >> >the user enters the input in wrong format.
- >> >
- >> >Thanks.
- >
- >Hi everyone,
- >
- >I'm sure the previous reply to this posting works also, but a simpler one is:-
- >
- > /* sound the bell */
- > printf("\a");
- >
- >where the 'a' means audiable bell. This works great on our Sun
- >Sparcstations, and I'm pretty sure that it's ANSI.
- >
- Yes, but doesn't printf() generate more overhead code than putchar()?
-
- >Cheers
- >
- >Mike Greenwood
- >
-
-
- ---
- Brian Oldham
- Hucknall UK
- !...Gesundbrunnen
-
-
-
-
-
-
-
-
-